<?php

namespace api\web\controller;

use cmf\controller\RestBaseController;
use api\web\model\NavModel;
use think\facade\Db;

class NavController extends RestBaseController
{
    public function index()
    {
        $list = NavModel::with('nav')
            ->where('dept_id','0')
            ->select();
        $this->success('导航菜单列表', $list);
    }
}